package mybatisTest;

import java.util.List;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import po.Actor;
import service.ActorService;

@RunWith(SpringJUnit4ClassRunner.class)
@ContextConfiguration(
		locations={"classpath:mybatis-config.xml",
				"classpath:spring-mybatis.xml",
				"classpath:spring.xml"
				})
public class MyTest {
	
	@Autowired
	private ActorService actorservice;
	
	
	@Test
	public  void  test1(){
		
		List<Actor> actors = actorservice.getpageActors(1, 5);
		
		for(Actor ac:actors) {
			System.out.println(ac);
		} 
		
	}
	
	

}
